package pojo;

import java.util.Date;

/**
 * 商品信息表的实体类
 * @author 叶军军
 */
public class Commodity {

    /**
     * ID
     */
    private int goId;

    /**
     * 名称
     */
    private String goName;

    /**
     * 销量
     */
    private int goSalesvolume;

    /**
     * 星级
     */
    private int goPraise;

    /**
     * 上架时间
     */
    private Date goUpTime;

    /**
     * 图片地址
     */
    private String goPictureUrl;

    /**
     * 描述
     */
    private String goDescribe;

    /**
     * 原价
     */
    private double goCost;

    /**
     * 售价
     */
    private double goPrice;

    /**
     * 库存
     */
    private int goStock;

    /**
     * 状态
     */
    private int goState;

    /**
     * 是否参与秒杀
     */
    private int goSeckill;

    /**
     * 商品所属分类ID
     */
    private int clId;

    /**
     * getter和setter方法
     */
    public int getGoId() {
        return goId;
    }

    public void setGoId(int goId) {
        this.goId = goId;
    }

    public String getGoName() {
        return goName;
    }

    public void setGoName(String goName) {
        this.goName = goName;
    }

    public int getGoSalesvolume() {
        return goSalesvolume;
    }

    public void setGoSalesvolume(int goSalesvolume) {
        this.goSalesvolume = goSalesvolume;
    }

    public int getGoPraise() {
        return goPraise;
    }

    public void setGoPraise(int goPraise) {
        this.goPraise = goPraise;
    }

    public Date getGoUpTime() {
        return goUpTime;
    }

    public void setGoUpTime(Date goUpTime) {
        this.goUpTime = goUpTime;
    }

    public String getGoPictureUrl() {
        return goPictureUrl;
    }

    public void setGoPictureUrl(String goPictureUrl) {
        this.goPictureUrl = goPictureUrl;
    }

    public String getGoDescribe() {
        return goDescribe;
    }

    public void setGoDescribe(String goDescribe) {
        this.goDescribe = goDescribe;
    }

    public double getGoCost() {
        return goCost;
    }

    public void setGoCost(double goCost) {
        this.goCost = goCost;
    }

    public double getGoPrice() {
        return goPrice;
    }

    public void setGoPrice(double goPrice) {
        this.goPrice = goPrice;
    }

    public int getGoStock() {
        return goStock;
    }

    public void setGoStock(int goStock) {
        this.goStock = goStock;
    }

    public int getGoState() {
        return goState;
    }

    public void setGoState(int goState) {
        this.goState = goState;
    }

    public int getGoSeckill() {
        return goSeckill;
    }

    public void setGoSeckill(int goSeckill) {
        this.goSeckill = goSeckill;
    }

    public int getClId() {
        return clId;
    }

    public void setClId(int clId) {
        this.clId = clId;
    }

    /**
     * 无参构造方法
     */
    public Commodity() {
    }

    /**
     * 有参构造方法
     * @param goId
     * @param goName
     * @param goSalesvolume
     * @param goPraise
     * @param goUpTime
     * @param goPictureUrl
     * @param goDescribe
     * @param goCost
     * @param goPrice
     * @param goStock
     * @param goState
     * @param goSeckill
     * @param clId
     */
    public Commodity(int goId, String goName, int goSalesvolume, int goPraise, Date goUpTime, String goPictureUrl, String goDescribe, double goCost, double goPrice, int goStock, int goState, int goSeckill, int clId) {
        this.goId = goId;
        this.goName = goName;
        this.goSalesvolume = goSalesvolume;
        this.goPraise = goPraise;
        this.goUpTime = goUpTime;
        this.goPictureUrl = goPictureUrl;
        this.goDescribe = goDescribe;
        this.goCost = goCost;
        this.goPrice = goPrice;
        this.goStock = goStock;
        this.goState = goState;
        this.goSeckill = goSeckill;
        this.clId = clId;
    }

    /**
     * 重写toString方法
     */
    @Override
    public String toString() {
        return "Commodity{" +
                "goId=" + goId +
                ", goName='" + goName + '\'' +
                ", goSalesvolume=" + goSalesvolume +
                ", goPraise=" + goPraise +
                ", goUpTime=" + goUpTime +
                ", goPictureUrl='" + goPictureUrl + '\'' +
                ", goDescribe='" + goDescribe + '\'' +
                ", goCost=" + goCost +
                ", goPrice=" + goPrice +
                ", goStock=" + goStock +
                ", goState=" + goState +
                ", goSeckill=" + goSeckill +
                ", clId=" + clId +
                '}';
    }
}
